ComponentLatestVersion.fromJson constructor

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

Implementation

factory ComponentLatestVersion.fromJson(Map<String, dynamic> json) {
  return ComponentLatestVersion(
    arn: json['arn'] 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?,
  );
}