Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

escape some fileds which are dart keyword

in my application which i connected to server, that return this output:

"usertags": {
    "in": [
        {

        }
    ]
},

in that in is dart keyword and i don't how can i escape that to get data from that and i get this error:

error: Expected a class member.

abstract class BuiltUserTags implements Built<BuiltUserTags, BuiltUserTagsBuilder> {

  BuiltList<BuiltIn>    get   in;

  BuiltUserTags._();

  factory BuiltUserTags([updates(BuiltUserTagsBuilder b)]) = _$BuiltUserTags;

  static Serializer<BuiltUserTags> get serializer => _$builtUserTagsSerializer;
}
like image 440
DolDurma Avatar asked Oct 15 '22 11:10

DolDurma


1 Answers

problem solved, thanks to library owner

@BuiltValueField(wireName: 'in')
BuiltList<BuiltIn> get ins;
like image 159
DolDurma Avatar answered Nov 29 '22 07:11

DolDurma