Purposes.fromJson constructor

Purposes.fromJson(
  1. dynamic json
)

Implementation

Purposes.fromJson(dynamic json)
    : global = EntitiesHelper.toIds(json["global"]),
      consent = EntitiesHelper.toIds(json["consent"]),
      legitimateInterest = EntitiesHelper.toIds(json["legitimate_interest"]),
      essential = json["essential"]?.cast<String>();