toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of ErrorDetails.

Implementation

Map<String, dynamic> toJson() {
  return {
    'RequestId': requestId,
    'Date': date == null ? '' : date!.toUtc().toIso8601String()
  };
}