Input$AttributeValueInput.fromJson constructor

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

Implementation

factory Input$AttributeValueInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  final l$label = data['label'];
  result$data['label'] = (l$label as String);
  final l$externalId = data['externalId'];
  result$data['externalId'] = (l$externalId as String);
  final l$target = data['target'];
  result$data['target'] =
      Input$TargetACIInput.fromJson((l$target as Map<String, dynamic>));
  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();
  }
  return Input$AttributeValueInput._(result$data);
}