OriginTrialToken.fromJson constructor
OriginTrialToken.fromJson(
- Map<String, dynamic> json
)
Implementation
factory OriginTrialToken.fromJson(Map<String, dynamic> json) {
return OriginTrialToken(
origin: json['origin'] as String,
matchSubDomains: json['matchSubDomains'] as bool? ?? false,
trialName: json['trialName'] as String,
expiryTime: network.TimeSinceEpoch.fromJson(json['expiryTime'] as num),
isThirdParty: json['isThirdParty'] as bool? ?? false,
usageRestriction: OriginTrialUsageRestriction.fromJson(
json['usageRestriction'] as String),
);
}