mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
Some linting_tool updates and cleanup (#1279)
This commit is contained in:
@@ -62,19 +62,17 @@ class RuleAdapter extends TypeAdapter<Rule> {
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
Rule _$RuleFromJson(Map<String, dynamic> json) {
|
||||
return Rule(
|
||||
name: json['name'] as String,
|
||||
description: json['description'] as String,
|
||||
group: json['group'] as String,
|
||||
maturity: json['maturity'] as String,
|
||||
incompatible: (json['incompatible'] as List<dynamic>)
|
||||
.map((e) => e as String)
|
||||
.toList(),
|
||||
sets: (json['sets'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
details: json['details'] as String,
|
||||
);
|
||||
}
|
||||
Rule _$RuleFromJson(Map<String, dynamic> json) => Rule(
|
||||
name: json['name'] as String,
|
||||
description: json['description'] as String,
|
||||
group: json['group'] as String,
|
||||
maturity: json['maturity'] as String,
|
||||
incompatible: (json['incompatible'] as List<dynamic>)
|
||||
.map((e) => e as String)
|
||||
.toList(),
|
||||
sets: (json['sets'] as List<dynamic>).map((e) => e as String).toList(),
|
||||
details: json['details'] as String,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$RuleToJson(Rule instance) => <String, dynamic>{
|
||||
'name': instance.name,
|
||||
|
||||
Reference in New Issue
Block a user