serialize<S> method

S serialize<S>()

Implementation

S serialize<S>() {
  if (_isBasicType(keyType) && _isBasicType(valueType)) {
    return this as S;
  }

  return map((k, v) => MapEntry(SerializableData.serializeGeneric(k),
      SerializableData.serializeGeneric(v))) as S;
}