toJson method

Map<String, dynamic> toJson()

Converts this HotReloadResponse to a JSON map.

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'success': success,
  if (errorMessage != null) 'error': errorMessage,
};