MCPcopy Create free account
hub / github.com/apache/fory / default_value

Method default_value

compiler/fory_compiler/generators/dart.py:648–657  ·  view source on GitHub ↗
(
        self,
        field: Field,
        parent_stack: Optional[List[Message]] = None,
    )

Source from the content-addressed store, hash-verified

646 return "null"
647
648 def default_value(
649 self,
650 field: Field,
651 parent_stack: Optional[List[Message]] = None,
652 ) -> str:
653 return self._default_value_for_type(
654 field.field_type,
655 field.optional,
656 parent_stack,
657 )
658
659 def struct_annotation(self, message: Message) -> str:
660 if message.options.get("evolving", True):

Callers 1

generate_messageMethod · 0.95

Calls 1

Tested by

no test coverage detected