toJson method

Map<String, Object?> toJson()

The received line.

Implementation

Map<String, Object?> toJson() => {
  'status': 'received',
  'giver': giver,
  'vaults': [
    for (final v in vaults)
      {'name': v.name, 'locator': v.locator, 'primary': v.primary},
  ],
  'config': config,
  'tokens': tokens,
};