GetBackupPlanResult.fromMap constructor

GetBackupPlanResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GetBackupPlanResult.fromMap(Map<String, dynamic> map) {
  return GetBackupPlanResult(
    backupConfig: BackupConfigResponse.fromMap((map['backupConfig']! as Map).cast<String, dynamic>()),
    backupSchedule: ScheduleResponse.fromMap((map['backupSchedule']! as Map).cast<String, dynamic>()),
    cluster: map['cluster'] as String,
    createTime: map['createTime'] as String,
    deactivated: map['deactivated'] as bool,
    description: map['description'] as String,
    etag: map['etag'] as String,
    labels: (map['labels'] as Map).cast<String, String>(),
    name: map['name'] as String,
    protectedPodCount: map['protectedPodCount'] as int,
    retentionPolicy: RetentionPolicyResponse.fromMap((map['retentionPolicy']! as Map).cast<String, dynamic>()),
    state: map['state'] as String,
    stateReason: map['stateReason'] as String,
    uid: map['uid'] as String,
    updateTime: map['updateTime'] as String,
  );
}