toWire method

Map<String, dynamic> toWire()

Implementation

Map<String, dynamic> toWire() => {
      'generation': generation,
      'commands': commands.map((c) => c.toWire()).toList(),
    };