EncryptionConfig.fromJson constructor

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

Implementation

factory EncryptionConfig.fromJson(Map<String, dynamic> json) {
  return EncryptionConfig(
    provider: json['provider'] != null
        ? Provider.fromJson(json['provider'] as Map<String, dynamic>)
        : null,
    resources: (json['resources'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}