toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "client_id": clientId ==null?null: clientId,
      "id": id == null ? null : id,
      "merchant_id": merchantId == null ? null : merchantId,
      "uuid": uuid == null ? null : uuid,
      "email": email == null ? null : email,
      "first_name": firstName == null ? null : firstName,
      "middle_name": middleName,
      "last_name": lastName == null ? null : lastName,
      "gender": gender == null ? null : gender,
      "phone_number": phoneNumber == null ? null : phoneNumber,
      "meta": meta == null ? null : meta!.toJson(),
      "status": status == null ? null : status,
      "deleted_at": deletedAt,
      "created_at": createdAt == null ? null : createdAt!.toIso8601String(),
      "updated_at": updatedAt == null ? null : updatedAt!.toIso8601String(),
    };