CreateSimulationApplicationResponse.fromJson constructor

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

Implementation

factory CreateSimulationApplicationResponse.fromJson(
    Map<String, dynamic> json) {
  return CreateSimulationApplicationResponse(
    arn: json['arn'] as String?,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    name: json['name'] as String?,
    renderingEngine: json['renderingEngine'] != null
        ? RenderingEngine.fromJson(
            json['renderingEngine'] as Map<String, dynamic>)
        : null,
    revisionId: json['revisionId'] as String?,
    robotSoftwareSuite: json['robotSoftwareSuite'] != null
        ? RobotSoftwareSuite.fromJson(
            json['robotSoftwareSuite'] as Map<String, dynamic>)
        : null,
    simulationSoftwareSuite: json['simulationSoftwareSuite'] != null
        ? SimulationSoftwareSuite.fromJson(
            json['simulationSoftwareSuite'] as Map<String, dynamic>)
        : null,
    sources: (json['sources'] as List?)
        ?.whereNotNull()
        .map((e) => Source.fromJson(e as Map<String, dynamic>))
        .toList(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    version: json['version'] as String?,
  );
}