toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final component = this.component;
  final id = this.id;
  final level = this.level;
  final type = this.type;
  final space = this.space;
  return {
    'Component': component.toValue(),
    'Id': id,
    'Level': level.toValue(),
    'Type': type.toValue(),
    if (space != null) 'Space': space,
  };
}