GoogleLongrunningOperation.fromJson constructor

GoogleLongrunningOperation.fromJson(
  1. Map _json
)

Implementation

GoogleLongrunningOperation.fromJson(core.Map _json)
    : this(
        done: _json.containsKey('done') ? _json['done'] as core.bool : null,
        error: _json.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                _json['error'] as core.Map<core.String, core.dynamic>)
            : null,
        metadata: _json.containsKey('metadata')
            ? _json['metadata'] as core.Map<core.String, core.dynamic>
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        response: _json.containsKey('response')
            ? _json['response'] as core.Map<core.String, core.dynamic>
            : null,
      );