CookieObject.fromJson constructor

CookieObject.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CookieObject.fromJson(Map<String, dynamic> json) {
  return CookieObject(
    cookiesAllowList: (json['cookiesAllowList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    option: (json['option'] as String?)?.toForwardValues(),
  );
}