toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (autoRenew != null) 'autoRenew': autoRenew!,
      if (category != null) 'category': category!,
      if (creationTimestamp != null) 'creationTimestamp': creationTimestamp!,
      if (description != null) 'description': description!,
      if (endTimestamp != null) 'endTimestamp': endTimestamp!,
      if (existingReservations != null)
        'existingReservations': existingReservations!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (licenseResource != null) 'licenseResource': licenseResource!,
      if (mergeSourceCommitments != null)
        'mergeSourceCommitments': mergeSourceCommitments!,
      if (name != null) 'name': name!,
      if (plan != null) 'plan': plan!,
      if (region != null) 'region': region!,
      if (reservations != null) 'reservations': reservations!,
      if (resources != null) 'resources': resources!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (splitSourceCommitment != null)
        'splitSourceCommitment': splitSourceCommitment!,
      if (startTimestamp != null) 'startTimestamp': startTimestamp!,
      if (status != null) 'status': status!,
      if (statusMessage != null) 'statusMessage': statusMessage!,
      if (type != null) 'type': type!,
    };