InitialStateConfig.fromJson constructor
InitialStateConfig.fromJson(
- Object? j
Implementation
factory InitialStateConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return InitialStateConfig(
dbs: switch (json['dbs']) {
null => [],
List<Object?> $1 => [for (final i in $1) FileContentBuffer.fromJson(i)],
_ => throw const FormatException('"dbs" is not a list'),
},
dbxs: switch (json['dbxs']) {
null => [],
List<Object?> $1 => [for (final i in $1) FileContentBuffer.fromJson(i)],
_ => throw const FormatException('"dbxs" is not a list'),
},
keks: switch (json['keks']) {
null => [],
List<Object?> $1 => [for (final i in $1) FileContentBuffer.fromJson(i)],
_ => throw const FormatException('"keks" is not a list'),
},
pk: switch (json['pk']) {
null => null,
Object $1 => FileContentBuffer.fromJson($1),
},
);
}