DifferentialPrivacyPolicy.fromJson constructor

DifferentialPrivacyPolicy.fromJson(
  1. Map json_
)

Implementation

DifferentialPrivacyPolicy.fromJson(core.Map json_)
    : this(
        deltaBudget: json_.containsKey('deltaBudget')
            ? (json_['deltaBudget'] as core.num).toDouble()
            : null,
        deltaBudgetRemaining: json_.containsKey('deltaBudgetRemaining')
            ? (json_['deltaBudgetRemaining'] as core.num).toDouble()
            : null,
        deltaPerQuery: json_.containsKey('deltaPerQuery')
            ? (json_['deltaPerQuery'] as core.num).toDouble()
            : null,
        epsilonBudget: json_.containsKey('epsilonBudget')
            ? (json_['epsilonBudget'] as core.num).toDouble()
            : null,
        epsilonBudgetRemaining: json_.containsKey('epsilonBudgetRemaining')
            ? (json_['epsilonBudgetRemaining'] as core.num).toDouble()
            : null,
        maxEpsilonPerQuery: json_.containsKey('maxEpsilonPerQuery')
            ? (json_['maxEpsilonPerQuery'] as core.num).toDouble()
            : null,
        maxGroupsContributed: json_.containsKey('maxGroupsContributed')
            ? json_['maxGroupsContributed'] as core.String
            : null,
        privacyUnitColumn: json_.containsKey('privacyUnitColumn')
            ? json_['privacyUnitColumn'] as core.String
            : null,
      );