AiutaConsentStandaloneStrings.fromJson constructor

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

Implementation

factory AiutaConsentStandaloneStrings.fromJson(Map<String, dynamic> json) {
  switch (json['type'] as String) {
    case 'builtIn':
      return AiutaConsentStandaloneStringsBuiltIn.fromJson(json);
    case 'custom':
      return AiutaConsentStandaloneStringsCustom.fromJson(json);
    default:
      throw Exception('Unknown consent standalone strings type');
  }
}