answer property

Map<String, Object?> get answer

The answer as the wire shows it.

Implementation

Map<String, Object?> get answer => switch ((ok, errorCode)) {
  (final Map<String, Object?> payload, _) => {'v': 1, 'ok': payload},
  (_, final String code) => {
    'v': 1,
    'error': {'code': code, 'message': ProtocolExamples.any},
  },
  _ => const {},
};