toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (admissionPolicy != null) 'admissionPolicy': admissionPolicy!,
      if (anywhereCacheId != null) 'anywhereCacheId': anywhereCacheId!,
      if (bucket != null) 'bucket': bucket!,
      if (createTime != null)
        'createTime': createTime!.toUtc().toIso8601String(),
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (pendingUpdate != null) 'pendingUpdate': pendingUpdate!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (state != null) 'state': state!,
      if (ttl != null) 'ttl': ttl!,
      if (updateTime != null)
        'updateTime': updateTime!.toUtc().toIso8601String(),
      if (zone != null) 'zone': zone!,
    };