toJson method
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
};
}