LayersListItem.fromJson constructor

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

Implementation

factory LayersListItem.fromJson(Map<String, dynamic> json) {
  return LayersListItem(
    latestMatchingVersion: json['LatestMatchingVersion'] != null
        ? LayerVersionsListItem.fromJson(
            json['LatestMatchingVersion'] as Map<String, dynamic>)
        : null,
    layerArn: json['LayerArn'] as String?,
    layerName: json['LayerName'] as String?,
  );
}