# Class CalendarModelCodec

java.lang.Object
com.codename1.calendar.CalendarModelCodec

public final class CalendarModelCodec extends Object
Lossless map encoding used by the offline cache and provider fixtures.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static CalendarDateTime`
  `decodeDateTime(Map m)`
  `static CalendarEvent`
  `decodeEvent(Map m)`
  `static CalendarTask`
  `decodeTask(Map m)`
  `static Map<String,Object>`
  `encodeDateTime(CalendarDateTime d)`
  `static Map<String,Object>`
  `encodeEvent(CalendarEvent e)`
  `static Map<String,Object>`
  `encodeTask(CalendarTask t)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### encodeEvent

    public static Map<String,Object> encodeEvent(CalendarEvent e)

  - ### decodeEvent

    public static CalendarEvent decodeEvent(Map m)

  - ### encodeTask

    public static Map<String,Object> encodeTask(CalendarTask t)

  - ### decodeTask

    public static CalendarTask decodeTask(Map m)

  - ### encodeDateTime

    public static Map<String,Object> encodeDateTime(CalendarDateTime d)

  - ### decodeDateTime

    public static CalendarDateTime decodeDateTime(Map m)