ContainerDatasetAction.fromJson constructor

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

Implementation

factory ContainerDatasetAction.fromJson(Map<String, dynamic> json) {
  return ContainerDatasetAction(
    executionRoleArn: json['executionRoleArn'] as String,
    image: json['image'] as String,
    resourceConfiguration: ResourceConfiguration.fromJson(
        json['resourceConfiguration'] as Map<String, dynamic>),
    variables: (json['variables'] as List?)
        ?.whereNotNull()
        .map((e) => Variable.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}