We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"
'
Please add an option in the Options list that let me replace " by '. This is the recommended notation by Dart.
For instance, this is the code generated by your interface:
class UsaState { UsaState({ @required this.name, @required this.abbreviation, }); final String name; final String abbreviation; factory UsaState.fromJson(Map<String, dynamic> json) => UsaState( name: json["name"], abbreviation: json["abbreviation"], ); Map<String, dynamic> toJson() => { "name": name, "abbreviation": abbreviation, }; }
This is what it needs to be in Dart:
class UsaState { UsaState({ @required this.name, @required this.abbreviation, }); final String name; final String abbreviation; factory UsaState.fromJson(Map<String, dynamic> json) => UsaState( name: json['name'], abbreviation: json['abbreviation'], ); Map<String, dynamic> toJson() => { 'name': name, 'abbreviation': abbreviation, }; } ``
The text was updated successfully, but these errors were encountered:
Single quotes are the standard. The tool should just generate single quotes.
Sorry, something went wrong.
No branches or pull requests
Please add an option in the Options list that let me replace
"
by'
. This is the recommended notation by Dart.For instance, this is the code generated by your interface:
This is what it needs to be in Dart:
The text was updated successfully, but these errors were encountered: