toMap method

Map<String, int?> toMap()

Implementation

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