toJson method
Implementation
Map<String, dynamic> toJson() => {
"contents": contents == null ? null : contents,
"string": string == null ? null : string,
"measurements": measurements == null
? null
: List<dynamic>.from(measurements!.map((x) => x.toJson())),
"clock": clock == null ? null : clock!.toJson(),
};