ResponseStatus.fromJson constructor

ResponseStatus.fromJson(
  1. Map<String, dynamic> source
)

Implementation

ResponseStatus.fromJson(Map<String, dynamic> source) {
  var json = source["Result"]["ResponseStatus"];
  errorCode = json["ErrorCode"];
  isSuccess = json["IsSuccess"];
  errors = (json["Errors"] as List).map((i) => ResponseError.fromJson(i)).toList();
  successEntitys = (json["SuccessEntitys"] as List).map((i) => SuccessEntity.fromJson(i)).toList();
  successMessages = json["SuccessMessages"];
  msgCode = json["MsgCode"];
}