ErrorProto.fromJson constructor

ErrorProto.fromJson(
  1. Map json_
)

Implementation

ErrorProto.fromJson(core.Map json_)
    : this(
        argument: json_.containsKey('argument')
            ? (json_['argument'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        code: json_.containsKey('code') ? json_['code'] as core.String : null,
        debugInfo: json_.containsKey('debugInfo')
            ? json_['debugInfo'] as core.String
            : null,
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        externalErrorMessage: json_.containsKey('externalErrorMessage')
            ? json_['externalErrorMessage'] as core.String
            : null,
        location: json_.containsKey('location')
            ? json_['location'] as core.String
            : null,
        locationType: json_.containsKey('locationType')
            ? json_['locationType'] as core.String
            : null,
      );