toJson method
Implementation
Map<String, dynamic> toJson() {
final attributeDataType = this.attributeDataType;
final developerOnlyAttribute = this.developerOnlyAttribute;
final mutable = this.mutable;
final name = this.name;
final numberAttributeConstraints = this.numberAttributeConstraints;
final required = this.required;
final stringAttributeConstraints = this.stringAttributeConstraints;
return {
if (attributeDataType != null)
'AttributeDataType': attributeDataType.toValue(),
if (developerOnlyAttribute != null)
'DeveloperOnlyAttribute': developerOnlyAttribute,
if (mutable != null) 'Mutable': mutable,
if (name != null) 'Name': name,
if (numberAttributeConstraints != null)
'NumberAttributeConstraints': numberAttributeConstraints,
if (required != null) 'Required': required,
if (stringAttributeConstraints != null)
'StringAttributeConstraints': stringAttributeConstraints,
};
}