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')
            ? Status.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,
      );