toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (backupKind != null) 'backupKind': backupKind!,
      if (description != null) 'description': description!,
      if (diskEncryptionConfiguration != null)
        'diskEncryptionConfiguration': diskEncryptionConfiguration!.toJson(),
      if (diskEncryptionStatus != null)
        'diskEncryptionStatus': diskEncryptionStatus!.toJson(),
      if (endTime != null) 'endTime': endTime!,
      if (enqueuedTime != null) 'enqueuedTime': enqueuedTime!,
      if (error != null) 'error': error!.toJson(),
      if (id != null) 'id': id!,
      if (instance != null) 'instance': instance!,
      if (kind != null) 'kind': kind!,
      if (location != null) 'location': location!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (startTime != null) 'startTime': startTime!,
      if (status != null) 'status': status!,
      if (type != null) 'type': type!,
      if (windowStartTime != null) 'windowStartTime': windowStartTime!,
    };