PutAssetPropertyValueEntry.fromJson constructor

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

Implementation

factory PutAssetPropertyValueEntry.fromJson(Map<String, dynamic> json) {
  return PutAssetPropertyValueEntry(
    propertyValues: (json['propertyValues'] as List)
        .whereNotNull()
        .map((e) => AssetPropertyValue.fromJson(e as Map<String, dynamic>))
        .toList(),
    assetId: json['assetId'] as String?,
    entryId: json['entryId'] as String?,
    propertyAlias: json['propertyAlias'] as String?,
    propertyId: json['propertyId'] as String?,
  );
}