toWire method

Map<String, Object?> toWire()

Implementation

Map<String, Object?> toWire() {
  final map = <String, Object?>{};
  map['name'] = this.name;
  map['turn'] = this.turn;
  final _outcome = this.outcome;
  if (_outcome != null) {
    map['outcome'] = _outcome.toWire();
  }
  final _summary = this.summary;
  if (_summary != null) {
    map['summary'] = _summary;
  }
  return map;
}