Re-encode to the externally-tagged wire shape ({tag: payload}).
{tag: payload}
@override Map<String, dynamic> toJson() => {tag: data};