fromJSON method
Implementation
@override
void fromJSON(dynamic value) {
if (value is String) {
this.value = DateTime.parse(value);
return;
}
this.value = DateTime.now();
}
@override
void fromJSON(dynamic value) {
if (value is String) {
this.value = DateTime.parse(value);
return;
}
this.value = DateTime.now();
}