ErrorDetails.fromJson constructor

ErrorDetails.fromJson(
  1. Map<String, dynamic> json
)

Creates a ErrorDetails instance from a JSON representation.

Implementation

ErrorDetails.fromJson(Map<String, dynamic> json) {
  requestId = json['requestId'];
  date = json['date'] == null ? null : DateTime.parse(json['date']);
}