toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final attributeDefinition = this.attributeDefinition;
  final attributeReference = this.attributeReference;
  final requiredBehavior = this.requiredBehavior;
  return {
    'Name': name,
    if (attributeDefinition != null)
      'AttributeDefinition': attributeDefinition,
    if (attributeReference != null) 'AttributeReference': attributeReference,
    if (requiredBehavior != null)
      'RequiredBehavior': requiredBehavior.toValue(),
  };
}