TargetInstances.fromJson constructor

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

Implementation

factory TargetInstances.fromJson(Map<String, dynamic> json) {
  return TargetInstances(
    autoScalingGroups: (json['autoScalingGroups'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    ec2TagSet: json['ec2TagSet'] != null
        ? EC2TagSet.fromJson(json['ec2TagSet'] as Map<String, dynamic>)
        : null,
    tagFilters: (json['tagFilters'] as List?)
        ?.whereNotNull()
        .map((e) => EC2TagFilter.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}