toJson method
Returns the date as yyyy-MM-dd, for JSON and other storage.
The time of day is not included; store toDateTime instead when it matters. PersianDate.fromJson reads the result back.
Implementation
String toJson() => format('yyyy-MM-dd');