factory ErrorDetail.fromJson(Map<String, dynamic> json) { return ErrorDetail( errorCode: json['ErrorCode'] as String?, errorMessage: json['ErrorMessage'] as String?, ); }