toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'type': type,
  'status': status,
  'reason': reason,
  'message': message,
  'observed_at': observedAt.toUtc().toIso8601String(),
};