UserPrivacySettingRules.fromJson constructor

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

Parse from a json

Implementation

factory UserPrivacySettingRules.fromJson(Map<String, dynamic> json) =>
    UserPrivacySettingRules(
      rules: List<UserPrivacySettingRule>.from((json['rules'] ?? [])
          .map((item) => UserPrivacySettingRule.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );