toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.isEnabled != null) {
    json[r'is_enabled'] = this.isEnabled;
  } else {
    json[r'is_enabled'] = null;
  }
  if (this.isDefault != null) {
    json[r'is_default'] = this.isDefault;
  } else {
    json[r'is_default'] = null;
  }
  return json;
}