encode method
Implementation
@override
List<Map<String, Object?>> encode() => [
{
'time_zone': [timeZone.encode()],
if (startTime != null) 'start_time': startTime!.toTfJson(),
if (endTime != null) 'end_time': endTime!.toTfJson(),
if (timeOfDay != null) 'time_of_day': [timeOfDay!.encode()],
if (weekly != null) 'weekly': [weekly!.encode()],
if (monthly != null) 'monthly': [monthly!.encode()],
},
];