TaskOverride.fromJson constructor

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

Implementation

factory TaskOverride.fromJson(Map<String, dynamic> json) {
  return TaskOverride(
    containerOverrides: (json['containerOverrides'] as List?)
        ?.whereNotNull()
        .map((e) => ContainerOverride.fromJson(e as Map<String, dynamic>))
        .toList(),
    cpu: json['cpu'] as String?,
    executionRoleArn: json['executionRoleArn'] as String?,
    inferenceAcceleratorOverrides: (json['inferenceAcceleratorOverrides']
            as List?)
        ?.whereNotNull()
        .map((e) =>
            InferenceAcceleratorOverride.fromJson(e as Map<String, dynamic>))
        .toList(),
    memory: json['memory'] as String?,
    taskRoleArn: json['taskRoleArn'] as String?,
  );
}