toMap method

Map<String, int?> toMap()
inherited

Implementation

Map<String, int?> toMap() {
  return {
    if (hasYear) kyear: year,
    if (hasMonth) kmonth: month,
    if (hasDay) kday: day,
  };
}