EncryptedFieldsConfiguration.fromJSON constructor

EncryptedFieldsConfiguration.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory EncryptedFieldsConfiguration.fromJSON(Map<String, dynamic> data) {
  return EncryptedFieldsConfiguration(
      accessLog: (data["accessLog"] as List<dynamic>).map((x) => x as String).toSet(),
      calendarItem: (data["calendarItem"] as List<dynamic>).map((x) => x as String).toSet(),
      contact: (data["contact"] as List<dynamic>).map((x) => x as String).toSet(),
      service: (data["service"] as List<dynamic>).map((x) => x as String).toSet(),
      healthElement: (data["healthElement"] as List<dynamic>).map((x) => x as String).toSet(),
      maintenanceTask: (data["maintenanceTask"] as List<dynamic>).map((x) => x as String).toSet(),
      patient: (data["patient"] as List<dynamic>).map((x) => x as String).toSet(),
      message: (data["message"] as List<dynamic>).map((x) => x as String).toSet(),
      topic: (data["topic"] as List<dynamic>).map((x) => x as String).toSet(),
      document: (data["document"] as List<dynamic>).map((x) => x as String).toSet(),
      form: (data["form"] as List<dynamic>).map((x) => x as String).toSet(),
      receipt: (data["receipt"] as List<dynamic>).map((x) => x as String).toSet(),
      classification: (data["classification"] as List<dynamic>).map((x) => x as String).toSet(),
      timeTable: (data["timeTable"] as List<dynamic>).map((x) => x as String).toSet(),
      invoice: (data["invoice"] as List<dynamic>).map((x) => x as String).toSet(),
  );
}