DescribeRobotApplicationResponse.fromJson constructor

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

Implementation

factory DescribeRobotApplicationResponse.fromJson(Map<String, dynamic> json) {
  return DescribeRobotApplicationResponse(
    arn: json['arn'] as String?,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    name: json['name'] as String?,
    revisionId: json['revisionId'] as String?,
    robotSoftwareSuite: json['robotSoftwareSuite'] != null
        ? RobotSoftwareSuite.fromJson(
            json['robotSoftwareSuite'] 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?,
  );
}