newItunesType function

ItunesType newItunesType(
  1. XmlElement element
)

Implementation

ItunesType newItunesType(XmlElement element) {
  switch (element.text) {
    case 'episodic':
      return ItunesType.episodic;
    case 'serial':
      return ItunesType.serial;
    default:
      return ItunesType.unknown;
  }
}