toJson method
Implementation
Map<String, Object?> toJson() {
var friendly = this.friendly;
var millis = this.millis;
final json = <String, Object?>{};
if (friendly != null) {
json[r'friendly'] = friendly;
}
if (millis != null) {
json[r'millis'] = millis;
}
return json;
}