Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extraInfo有bug #6

Open
1909mm opened this issue Jul 3, 2023 · 0 comments
Open

extraInfo有bug #6

1909mm opened this issue Jul 3, 2023 · 0 comments

Comments

@1909mm
Copy link

1909mm commented Jul 3, 2023

Unhandled Exception: type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, dynamic>?'

修改channel_info.g.dart文件FromJson:
ChannelInfo _$ChannelInfoFromJson(Map<String, dynamic> json) => ChannelInfo( channel: json['channel'] as String, extraInfo: (json['extra_info'] as Map<Object, Object>?)?.map( (k, e) => MapEntry(k.toString(), e as String), ), );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant