fromJSON method

  1. @override
void fromJSON(
  1. dynamic value
)
override

Implementation

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