Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flutter

func Flutter(c *FlutterConfig) error

func Generate

func Generate(c *Config) error

func Handler

func Handler(c *Config) error

Types

type Config

type Config struct {
	Source  string
	Target  string
	Package string
}

type ExtendedType

type ExtendedType struct {
	*gen.Type
	TypeMappings []*TypeMapping
}

type FlutterConfig

type FlutterConfig struct {
	Config `mapstructure:",squash"`

	TypeMappings []*TypeMapping `mapstructure:"type_mappings"`
}

type TypeMapping

type TypeMapping struct {
	Go              string
	Dart            string
	Import          string
	ConverterImport string `mapstructure:"converter_import"`
	ConverterNeeded bool   `mapstructure:"converter_needed"`
}