class Mint::ObjectSerializer
- Mint::ObjectSerializer
- Reference
- Object
Overview
This class handles the generation of a serializer of Mint types into JavaScript Objects.
Defined in:
utils/object_serializer.crConstructors
Instance Method Summary
- #decoder(node : TypeChecker::Variable)
- #decoder(node : TypeChecker::Record)
- #decoder(node : TypeChecker::Type)
- #encoder(node : TypeChecker::Record)
- #encoder(node : TypeChecker::Variable)
- #encoder(node : TypeChecker::Type)
-
#generate_mappings(node : TypeChecker::Record)
Generates mappings for a Record:
- #js : Js
Constructor Detail
Instance Method Detail
def generate_mappings(node : TypeChecker::Record)
#
Generates mappings for a Record:
// The encoder is optional { field: ["generated key", decoder, encoder] }