Dart Borsh: Optional Fields, Enum Handling, and Typed Array Serialization #2
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
What
Optional field handler implemted in templates
1meaning value is present, then writes the string, else it writes01it reads and return the value otherwise returnsnullBorsh logic for Enums
Variant represents an Optioan in the Enum and this Option can have a Tuple, Struct or be Empty as a value, i treat everything inside like a structFieldType and i extract those fields in a collection.
Loop through variants of the Enum and for each
variant:Added couple of methods in the Shared nunjucks template
u8oru64types for numbers so we just useintandbigintImplemented
fragmentfor Dart Typed Arrays conversionUint32List,Int16List, ...)