SimulationJobSummary.fromJson constructor

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

Implementation

factory SimulationJobSummary.fromJson(Map<String, dynamic> json) {
  return SimulationJobSummary(
    arn: json['arn'] as String?,
    dataSourceNames: (json['dataSourceNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    name: json['name'] as String?,
    robotApplicationNames: (json['robotApplicationNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    simulationApplicationNames: (json['simulationApplicationNames'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    status: (json['status'] as String?)?.toSimulationJobStatus(),
  );
}