@override Object toJson() => { 'entityType': entityType, 'payloads': [for (final i in payloads) i.toJson()], };