TemporalAsset.fromJson constructor

TemporalAsset.fromJson(
  1. Map json_
)

Implementation

TemporalAsset.fromJson(core.Map json_)
    : this(
        asset: json_.containsKey('asset')
            ? Asset.fromJson(
                json_['asset'] as core.Map<core.String, core.dynamic>)
            : null,
        deleted: json_.containsKey('deleted')
            ? json_['deleted'] as core.bool
            : null,
        priorAsset: json_.containsKey('priorAsset')
            ? Asset.fromJson(
                json_['priorAsset'] as core.Map<core.String, core.dynamic>)
            : null,
        priorAssetState: json_.containsKey('priorAssetState')
            ? json_['priorAssetState'] as core.String
            : null,
        window: json_.containsKey('window')
            ? TimeWindow.fromJson(
                json_['window'] as core.Map<core.String, core.dynamic>)
            : null,
      );