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