PrivacyPolicy.fromJson constructor

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

Implementation

factory PrivacyPolicy.fromJson(Map<String, dynamic> json) {
  return PrivacyPolicy(
    header: json['header'] as String?,
    module: json['module'] as String?,
    active: json['active'] as bool?,
    contents: (json['contents'] as List<dynamic>?)
        ?.map((item) => Content.fromJson(item as Map<String, dynamic>))
        .toList(),
  );
}