StatusProto.fromJson constructor

StatusProto.fromJson(
  1. Map _json
)

Implementation

StatusProto.fromJson(core.Map _json)
    : this(
        canonicalCode: _json.containsKey('canonicalCode')
            ? _json['canonicalCode'] as core.int
            : null,
        code: _json.containsKey('code') ? _json['code'] as core.int : null,
        message: _json.containsKey('message')
            ? _json['message'] as core.String
            : null,
        messageSet: _json.containsKey('messageSet')
            ? MessageSet.fromJson(
                _json['messageSet'] as core.Map<core.String, core.dynamic>)
            : null,
        space:
            _json.containsKey('space') ? _json['space'] as core.String : null,
      );