toJson method

Map<String, Object?> toJson()

Machine-readable shape (receipts / diagnostics).

Implementation

Map<String, Object?> toJson() => {
  'texts': List<String>.of(_texts),
  'anchors': List<String>.of(_anchors)..sort(),
  'hasProgressIndicator': hasProgressIndicator,
  if (platform != null) 'platform': platform!.label,
};