AssetPropertyValue.fromJson constructor

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

Implementation

factory AssetPropertyValue.fromJson(Map<String, dynamic> json) {
  return AssetPropertyValue(
    value:
        AssetPropertyVariant.fromJson(json['value'] as Map<String, dynamic>),
    quality: json['quality'] as String?,
    timestamp: json['timestamp'] != null
        ? AssetPropertyTimestamp.fromJson(
            json['timestamp'] as Map<String, dynamic>)
        : null,
  );
}