Email.fromJson constructor

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

Implementation

factory Email.fromJson(Map<String, dynamic> json) => Email(
      id: json["id"],
      email: json["email"],
      emailType: json["emailType"],
      companyId: json["companyId"],
      emailDefault: json["default"],
      deleted: json["deleted"],
      createdBy: json["createdBy"],
      updatedBy: json["updatedBy"],
      createdAt: json["createdAt"] == null
          ? null
          : DateTime.parse(json["createdAt"]),
      updatedAt: json["updatedAt"] == null
          ? null
          : DateTime.parse(json["updatedAt"]),
    );