SchemaAttributeType.fromJson constructor

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

Implementation

factory SchemaAttributeType.fromJson(Map<String, dynamic> json) {
  return SchemaAttributeType(
    attributeDataType:
        (json['AttributeDataType'] as String?)?.toAttributeDataType(),
    developerOnlyAttribute: json['DeveloperOnlyAttribute'] as bool?,
    mutable: json['Mutable'] as bool?,
    name: json['Name'] as String?,
    numberAttributeConstraints: json['NumberAttributeConstraints'] != null
        ? NumberAttributeConstraintsType.fromJson(
            json['NumberAttributeConstraints'] as Map<String, dynamic>)
        : null,
    required: json['Required'] as bool?,
    stringAttributeConstraints: json['StringAttributeConstraints'] != null
        ? StringAttributeConstraintsType.fromJson(
            json['StringAttributeConstraints'] as Map<String, dynamic>)
        : null,
  );
}