Map<String, dynamic> toJson() { final values = this.values; final attributeType = this.attributeType; return { 'Values': values, if (attributeType != null) 'AttributeType': attributeType.toValue(), }; }