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