Status.fromJson constructor

Status.fromJson(Map _json)

Implementation

Status.fromJson(core.Map _json) {
  if (_json.containsKey("code")) {
    code = _json["code"];
  }
  if (_json.containsKey("details")) {
    details = (_json["details"] as core.List)
        .map<core.Map<core.String, core.Object>>(
            (value) => (value as core.Map).cast<core.String, core.Object>())
        .toList();
  }
  if (_json.containsKey("message")) {
    message = _json["message"];
  }
}