toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final type = this.type;
  final defaultValue = this.defaultValue;
  final isImmutable = this.isImmutable;
  final rules = this.rules;
  return {
    'Type': type.toValue(),
    if (defaultValue != null) 'DefaultValue': defaultValue,
    if (isImmutable != null) 'IsImmutable': isImmutable,
    if (rules != null) 'Rules': rules,
  };
}