FluencySpec.fromJson constructor

FluencySpec.fromJson(
  1. Object? j
)

Implementation

factory FluencySpec.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FluencySpec(
    version: switch (json['version']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
  );
}