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