Converts this status to a JSON-serializable map.
Returns a map containing the 'type' field and 'id' field if present.
Map<String, dynamic> toJson() => cleanEmpty({ 'id': id?.toString(), 'type': type, });