toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final id = this.id;
  final name = this.name;
  final version = this.version;
  return {
    if (id != null) 'id': id,
    if (name != null) 'name': name,
    if (version != null) 'version': version,
  };
}