ErrorInfo.fromJson constructor

ErrorInfo.fromJson(
  1. Map json_
)

Implementation

ErrorInfo.fromJson(core.Map json_)
    : this(
        domain: json_.containsKey('domain')
            ? json_['domain'] as core.String
            : null,
        metadatas: json_.containsKey('metadatas')
            ? (json_['metadatas'] 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,
      );