InitialStateConfig.fromJson constructor

InitialStateConfig.fromJson(
  1. Map json_
)

Implementation

InitialStateConfig.fromJson(core.Map json_)
    : this(
        dbs: json_.containsKey('dbs')
            ? (json_['dbs'] as core.List)
                .map((value) => FileContentBuffer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dbxs: json_.containsKey('dbxs')
            ? (json_['dbxs'] as core.List)
                .map((value) => FileContentBuffer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        keks: json_.containsKey('keks')
            ? (json_['keks'] as core.List)
                .map((value) => FileContentBuffer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pk: json_.containsKey('pk')
            ? FileContentBuffer.fromJson(
                json_['pk'] as core.Map<core.String, core.dynamic>)
            : null,
      );