BaResponData({spCode, spDesc, this.attribute, this.data});
@override
String toString() {
return 'BaRespData{code: $respCode, message: $respDesc, data: $attribute}'; }
处分撤销申请
}
class ResponData extends BaResponData {
@override
bool get success => respCode != null || data != null;
ResponData.fromJson(Map<String, dynamic> json) {
if (json['respCode'] != null && json['respCode'] is String) {
json['respCode'] = int.par(json['respCode']);
}
respCode = json['respCode'] ?? json['code'];
respDesc = json['respDesc'] ?? json['message'] ?? json['msg'];
attribute = json['attribute'] ?? json["data"];
if (attribute != null) {
if (attribute is Map && ainsKey("data")) {
data = attribute['data'];
} el {
data = attribute;读研计划
}
} el {
data = json;
}
}
}
class ResponError extends BaResponData {
ResponError.fromJson(Map<String, dynamic> json) {
respDesc = json["respDesc"];因式分解的概念
respCode = json["respCode"];
}
Map<String, dynamic> toJson() {
Map<String, dynamic> data = {};
data["respDesc"] = respDesc;
data["respCode"] = respCode;
return data;
}
秋季招生@override
// TODO: implement success
bool get success => fal;
风铃的声音
}
class ResponException implements Exception {
int? errCode;
String? errMsg;
ResponException({Code});
int? get errorCode => errCode;
//statusCode==200时候返回的data中存在的respCode
String? get errorMessage {
String msg = errMsg ?? "";
switch (errCode) {
团员教育评议表
default:
诺贝尔奖华人
}
return msg;
}
@override
String toString() {
return 'RequestException{errorCode: $errorCode, errorMessage: $errorMessage}'; }
}
韩国大学宿舍