GetMissionProfileResponse.fromJson constructor

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

Implementation

factory GetMissionProfileResponse.fromJson(Map<String, dynamic> json) {
  return GetMissionProfileResponse(
    contactPostPassDurationSeconds:
        json['contactPostPassDurationSeconds'] as int?,
    contactPrePassDurationSeconds:
        json['contactPrePassDurationSeconds'] as int?,
    dataflowEdges: (json['dataflowEdges'] as List?)
        ?.whereNotNull()
        .map((e) =>
            (e as List).whereNotNull().map((e) => e as String).toList())
        .toList(),
    minimumViableContactDurationSeconds:
        json['minimumViableContactDurationSeconds'] as int?,
    missionProfileArn: json['missionProfileArn'] as String?,
    missionProfileId: json['missionProfileId'] as String?,
    name: json['name'] as String?,
    region: json['region'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    trackingConfigArn: json['trackingConfigArn'] as String?,
  );
}