toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final cookieExpirationPeriod = this.cookieExpirationPeriod;
  final policyName = this.policyName;
  return {
    if (cookieExpirationPeriod != null)
      'CookieExpirationPeriod': cookieExpirationPeriod,
    if (policyName != null) 'PolicyName': policyName,
  };
}