ContactConsentContactingPermissionModel.fromJson constructor Null safety

ContactConsentContactingPermissionModel.fromJson(
  1. Map<String, dynamic>? rawJson
)

Implementation

factory ContactConsentContactingPermissionModel.fromJson(
    Map<String, dynamic>? rawJson) {
  return ContactConsentContactingPermissionModel(
      Email: rawJson?["email"] ?? true,
      SMS: rawJson?["sms"] ?? true,
      Line: rawJson?["line"] ?? true,
      Facebook: rawJson?["facebook"] ?? true,
      MobileNotification: rawJson?["mobile_notification"] ?? true,
  );
}