factory ErrorInfo.fromJson(Map<String, dynamic> json) { return ErrorInfo( code: json['code'] as String?, message: json['message'] as String?, ); }