You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MTMusic/lib/models/universal_bean.dart

19 lines
327 B

11 months ago
class UniversalBean {
int? code;
String? msg;
String? data;
UniversalBean.formMap(Map map) {
code = map['code'];
msg = map['msg'];
if (map['data'] is String) {
data = map['data'];
} else if (map['data'] is bool) {
data = map['data'].toString();
} else {
data = null;
}
11 months ago
}
}