Mixin.fromJson constructor

Mixin.fromJson(
  1. 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),
    },
  );
}