toMap method

MP toMap()

Implementation

MP toMap() => {
      'type': type,
      'kind': kind.index,
    };