FacetAttribute.fromJson constructor

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

Implementation

factory FacetAttribute.fromJson(Map<String, dynamic> json) {
  return FacetAttribute(
    name: json['Name'] as String,
    attributeDefinition: json['AttributeDefinition'] != null
        ? FacetAttributeDefinition.fromJson(
            json['AttributeDefinition'] as Map<String, dynamic>)
        : null,
    attributeReference: json['AttributeReference'] != null
        ? FacetAttributeReference.fromJson(
            json['AttributeReference'] as Map<String, dynamic>)
        : null,
    requiredBehavior:
        (json['RequiredBehavior'] as String?)?.toRequiredAttributeBehavior(),
  );
}