toJson method

Json toJson()

Implementation

Json toJson() => {'id': id, 'from': from, 'to': to, if (group != id) 'group': group};