GoogleRpcStatus.fromJson constructor

GoogleRpcStatus.fromJson(
  1. Map _json
)

Implementation

GoogleRpcStatus.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<core.Map<core.String, core.Object>>((value) =>
                    (value as core.Map<core.String, core.dynamic>).map(
                      (key, item) => core.MapEntry(
                        key,
                        item as core.Object,
                      ),
                    ))
                .toList()
            : null,
        message: _json.containsKey('message')
            ? _json['message'] as core.String
            : null,
      );