toJson method

Map<String, dynamic> toJson()
inherited

Converts this status to a JSON-serializable map.

Returns a map containing the 'type' field and 'id' field if present.

Implementation

Map<String, dynamic> toJson() => cleanEmpty({
      'id': id?.toString(),
      'type': type,
    });