Mixin.fromJson constructor
Mixin.fromJson(
- Object? j
Implementation
factory Mixin.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Mixin(
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
root: switch (json['root']) {
null => '',
Object $1 => decodeString($1),
},
);
}