Skip to content

[BUG] [dart-dio-next] Map will nullable value #10465

@jaumard

Description

@jaumard

I need to generate a Map of String, Object. So my definition look like this:

template:
          type: object
          nullable: true
          additionalProperties:
            type: object
            nullable: true

I was expecting that

@BuiltValueField(wireName: r'template')
BuiltMap<String, JsonObject?>? get template;

But got this:

@BuiltValueField(wireName: r'template')
BuiltMap<String, JsonObject>? get template;

So of course it crash a runtime when something null is on the map :(

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions