factory ErrorResponse.fromJson(Map<String, dynamic> json) => ErrorResponse( code: json['code'] as int, message: json['message'] as String, data: json['data'] as String?, );