toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'name'] = this.name;
  if (this.displayName != null) {
    json[r'display_name'] = this.displayName;
  } else {
    json[r'display_name'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.isSystem != null) {
    json[r'is_system'] = this.isSystem;
  } else {
    json[r'is_system'] = null;
  }
  return json;
}