toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of ApiError.

Implementation

Map<String, dynamic> toJson() {
  return {
    'Code': code,
    'Message': message,
    'Description': description,
    'DateTime': dateTime == null ? '' : dateTime!.toUtc().toIso8601String(),
    'InnerError': innerError
  };
}