GetBackupPlanOutput.fromJson constructor

GetBackupPlanOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetBackupPlanOutput.fromJson(Map<String, dynamic> json) {
  return GetBackupPlanOutput(
    advancedBackupSettings: (json['AdvancedBackupSettings'] as List?)
        ?.whereNotNull()
        .map((e) => AdvancedBackupSetting.fromJson(e as Map<String, dynamic>))
        .toList(),
    backupPlan: json['BackupPlan'] != null
        ? BackupPlan.fromJson(json['BackupPlan'] as Map<String, dynamic>)
        : null,
    backupPlanArn: json['BackupPlanArn'] as String?,
    backupPlanId: json['BackupPlanId'] as String?,
    creationDate: timeStampFromJson(json['CreationDate']),
    creatorRequestId: json['CreatorRequestId'] as String?,
    deletionDate: timeStampFromJson(json['DeletionDate']),
    lastExecutionDate: timeStampFromJson(json['LastExecutionDate']),
    versionId: json['VersionId'] as String?,
  );
}