toJson method

Map<String, Object?> toJson()

Encodes this snapshot as JSON-compatible data.

Implementation

Map<String, Object?> toJson() => <String, Object?>{
  'timestamp': timestamp.millisecondsSinceEpoch,
  'buster': buster,
  'state': state.toJson(),
};