toJson method

  1. @override
Object toJson()

Implementation

@override
Object toJson() => {
  if (name.isNotDefault) 'name': name,
  if (createTime case final createTime?) 'createTime': createTime.toJson(),
  if (destroyTime case final destroyTime?)
    'destroyTime': destroyTime.toJson(),
  if (state.isNotDefault) 'state': state.toJson(),
  if (replicationStatus case final replicationStatus?)
    'replicationStatus': replicationStatus.toJson(),
  if (etag.isNotDefault) 'etag': etag,
  if (clientSpecifiedPayloadChecksum.isNotDefault)
    'clientSpecifiedPayloadChecksum': clientSpecifiedPayloadChecksum,
  if (scheduledDestroyTime case final scheduledDestroyTime?)
    'scheduledDestroyTime': scheduledDestroyTime.toJson(),
  if (customerManagedEncryption case final customerManagedEncryption?)
    'customerManagedEncryption': customerManagedEncryption.toJson(),
};