toJson method

Map toJson()

Creates a json from the object

Implementation

Map toJson() {
  return {
    'command': command,
    'description': description,
  }..removeWhere((_, v) => v == null);
}