UtilStatusProto.fromJson constructor

UtilStatusProto.fromJson(
  1. Map json_
)

Implementation

UtilStatusProto.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')
            ? Proto2BridgeMessageSet.fromJson(
                json_['messageSet'] as core.Map<core.String, core.dynamic>)
            : null,
        space:
            json_.containsKey('space') ? json_['space'] as core.String : null,
      );