DateDataEntity.fromJson constructor

DateDataEntity.fromJson(
  1. dynamic json
)

Creates a new DateTimeDataEntity Object from json json needs to be a Date String with Format yyyy-MM-dd

Implementation

DateDataEntity.fromJson(dynamic json) {
  if (json != null) {
    value = _dateFormat.parse(json);
  }
}