$Status.fromJson constructor

$Status.fromJson(
  1. Map _json
)

Implementation

$Status.fromJson(core.Map _json)
    : this(
        code: _json.containsKey('code') ? _json['code'] as core.int : null,
        details: _json.containsKey('details')
            ? (_json['details'] as core.List)
                .map((value) => value as core.Map<core.String, core.dynamic>)
                .toList()
            : null,
        message: _json.containsKey('message')
            ? _json['message'] as core.String
            : null,
      );