DescribeComponentResponse.fromJson constructor

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

Implementation

factory DescribeComponentResponse.fromJson(Map<String, dynamic> json) {
  return DescribeComponentResponse(
    arn: json['arn'] as String?,
    componentName: json['componentName'] as String?,
    componentVersion: json['componentVersion'] as String?,
    creationTimestamp: timeStampFromJson(json['creationTimestamp']),
    description: json['description'] as String?,
    platforms: (json['platforms'] as List?)
        ?.whereNotNull()
        .map((e) => ComponentPlatform.fromJson(e as Map<String, dynamic>))
        .toList(),
    publisher: json['publisher'] as String?,
    status: json['status'] != null
        ? CloudComponentStatus.fromJson(
            json['status'] as Map<String, dynamic>)
        : null,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}