ConsentStore.fromJson constructor

ConsentStore.fromJson(
  1. Map json_
)

Implementation

ConsentStore.fromJson(core.Map json_)
    : this(
        defaultConsentTtl: json_.containsKey('defaultConsentTtl')
            ? json_['defaultConsentTtl'] as core.String
            : null,
        enableConsentCreateOnUpdate:
            json_.containsKey('enableConsentCreateOnUpdate')
                ? json_['enableConsentCreateOnUpdate'] as core.bool
                : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );