OperationMetadata.fromJson constructor

OperationMetadata.fromJson(
  1. Map _json
)

Implementation

OperationMetadata.fromJson(core.Map _json)
    : this(
        apiVersion: _json.containsKey('apiVersion')
            ? _json['apiVersion'] as core.String
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        endTime: _json.containsKey('endTime')
            ? _json['endTime'] as core.String
            : null,
        requestedCancellation: _json.containsKey('requestedCancellation')
            ? _json['requestedCancellation'] as core.bool
            : null,
        statusMessage: _json.containsKey('statusMessage')
            ? _json['statusMessage'] as core.String
            : null,
        target: _json.containsKey('target')
            ? _json['target'] as core.String
            : null,
        verb: _json.containsKey('verb') ? _json['verb'] as core.String : null,
      );