toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (backupWindow != null) 'backupWindow': backupWindow!,
  if (enabled != null) 'enabled': enabled!,
  if (encryptionConfig != null) 'encryptionConfig': encryptionConfig!,
  if (labels != null) 'labels': labels!,
  if (location != null) 'location': location!,
  if (quantityBasedRetention != null)
    'quantityBasedRetention': quantityBasedRetention!,
  if (timeBasedRetention != null) 'timeBasedRetention': timeBasedRetention!,
  if (weeklySchedule != null) 'weeklySchedule': weeklySchedule!,
};