GoogleRpcErrorInfo.fromJson constructor

GoogleRpcErrorInfo.fromJson(
  1. Map json_
)

Implementation

GoogleRpcErrorInfo.fromJson(core.Map json_)
    : this(
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        reason: json_.containsKey('reason')
            ? json_['reason'] as core.String
            : null,
      );