getTypeLayer method

TypeLayer? getTypeLayer()

Implementation

TypeLayer? getTypeLayer() {
  switch (this) {
    case 'tilelayer':
      return TypeLayer.tilelayer;
    case 'objectgroup':
      return TypeLayer.objectgroup;
    case 'imagelayer':
      return TypeLayer.imagelayer;
    case 'group':
      return TypeLayer.group;
    default:
      return null;
  }
}