FlagMetadata.withMap constructor

FlagMetadata.withMap(
  1. Map<String, dynamic>? infos
)

Implementation

FlagMetadata.withMap(Map<String, dynamic>? infos) {
  if (infos != null) {
    this.campaignId = (infos['campaignId'] as String);
    this.variationGroupId = infos['variationGroupId'] as String;
    this.variationId = infos['variationId'] as String;
    this.isReference = infos['isReference'] as bool;
    this.campaignType = infos['campaignType'] as String;
    this.slug = infos['slug'];
  }
}