JobStatus.fromJson constructor

JobStatus.fromJson(
  1. Map json_
)

Implementation

JobStatus.fromJson(core.Map json_)
    : this(
        errorResult: json_.containsKey('errorResult')
            ? ErrorProto.fromJson(
                json_['errorResult'] as core.Map<core.String, core.dynamic>)
            : null,
        errors: json_.containsKey('errors')
            ? (json_['errors'] as core.List)
                .map((value) => ErrorProto.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );