toJson method
Implementation
Map<String, dynamic> toJson() {
final id = this.id;
final isAlias = this.isAlias;
final name = this.name;
final options = this.options;
final target = this.target;
final type = this.type;
return {
if (id != null) 'id': id,
if (isAlias != null) 'isAlias': isAlias,
if (name != null) 'name': name,
if (options != null) 'options': options,
if (target != null) 'target': target,
if (type != null) 'type': type,
};
}