Input$AttributeValueUpdateInput.fromJson constructor

Input$AttributeValueUpdateInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Input$AttributeValueUpdateInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  if (data.containsKey('label')) {
    final l$label = data['label'];
    result$data['label'] = (l$label as String?);
  }
  if (data.containsKey('attribute')) {
    final l$attribute = data['attribute'];
    result$data['attribute'] = (l$attribute as String?);
  }
  if (data.containsKey('translation')) {
    final l$translation = data['translation'];
    result$data['translation'] = (l$translation as List<dynamic>?)
        ?.map((e) => Input$AttributeValueTranslationInput.fromJson(
            (e as Map<String, dynamic>)))
        .toList();
  }
  final l$id = data['id'];
  result$data['id'] = (l$id as String);
  return Input$AttributeValueUpdateInput._(result$data);
}